package ClassObject;

public class Book {
    public String bookname;//书名
    public String dateTime;// 截止到当前时间的时间,本来应该是EventTime,但是我们这里简化了直接用当前系统时间即可
    public long num=0L;//销量数
    public Book(){}

    public Book(String bookname, String dateTime, long num) {
        this.bookname=bookname;
        this.dateTime=dateTime;
        this.num+=num;
    }
    //
    public String getBookname() {
        return bookname;
    }
    public long getNum() {
        return num;
    }
}